\documentclass{minimal}

\usepackage[utf8]{inputenc}
\usepackage[english, russian]{babel}

\usepackage{pgfplots}
\usepackage{pgf}
\usepackage{tikz}
%%%<
\usepackage{verbatim}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\setlength\PreviewBorder{5pt}%
%%%>

\usepackage[utf8]{inputenc}


\begin{document}

\begin{tikzpicture} 
\begin{axis}[ 
  x tick label style={ /pgf/number format/1000 sep=}, 
  ylabel=количество тестов, 
  xlabel=ускорение, 
  enlargelimits=0.05, 
  legend style={at={(0.5,-0.2)}, 
  anchor=north,legend columns=-1}, 
  ybar=1pt, % configures `bar shift' 
  bar width=4pt, 
%  nodes near coords, 
] 
\addplot[fill=blue] file {../plots-data/lastBest.hist};
\addplot[fill=red] file {../plots-data/LearnVsCPU.hist};
\addplot[fill=green] file {../plots-data/LookAheadVsCPU.hist};
\legend{DPLL, Learning, Look-ahead} 
\end{axis} 
\end{tikzpicture}

\end{document}
